<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%><%@ include file="/include.inc.jsp"%>

<div class="pageContent">
<form method="post" action="<c:url value='/media/edit'/>" class="pageForm required-validate" onsubmit="return validateCallback(this,dialogAjaxDone);">
	<input type="hidden" value="${media.id }" name="id">
	<div class="pageFormContent" layoutH="57">
		<fieldset>
			<dl>
				<dt>所属组织: </dt>
				<dd>
					<input type="hidden" name="org.um_organ_id" value="${media.org.um_organ_id }">
					<input type="text" class="required" name="org.full_name" value="${media.org.full_name }" readonly/>
				</dd>
			</dl>
			<dl>
				<dt>媒体名称: </dt>
				<dd>
					<input type="text" name="mediaName" value="${media.mediaName }" class="required"/>
				</dd>
			</dl>
			<dl>
				<dt>姓名: </dt>
				<dd>
					<input type="text" name="userName" value="${media.userName }" class="required" />
				</dd>
			</dl>
			<dl>
				<dt>性别: </dt>
				<dd>
					<input type="radio" value="男" name="gender" <c:if test="${media.gender eq '男'}">checked="checked"</c:if>>男
					<input type="radio" value="女" name="gender" <c:if test="${media.gender eq '女'}">checked="checked"</c:if>>女
				</dd>
			</dl>
			<dl>
				<dt>职级: </dt>
				<dd>
					<input type="text" name="jobRank" class="required" value="${media.jobRank }"/>
				</dd>
			</dl>
			<dl>
				<dt>身份证号: </dt>
				<dd>
					<input value="${media.idCard }" type="text" name="idCard" class="required" maxlength="18" minlength="18"/>
				</dd>
			</dl>
			<dl>
				<dt>生日: </dt>
				<dd>
					<input value="<fmt:formatDate value='${media.birthday}' pattern='yyyy-MM-dd'/>" type="text" name="birthday" class="date required" readonly="readonly"/>
					<a href="javascript:;" class="inputDateButton">选择</a>
				</dd>
			</dl>
			<dl>
				<dt>手机: </dt>
				<dd>
					<input value="${media.mobile }" type="text" name="mobile" minlength="11" class="required"/>
				</dd>
			</dl>
			<dl>
				<dt>座机: </dt>
				<dd>
					<input value="${media.telephone }" type="text" name="telephone" />
				</dd>
			</dl>
			<dl>
				<dt>邮箱: </dt>
				<dd>
					<input value="${media.email }" type="text" name="email" class="required email" maxlength="100" />
				</dd>
			</dl>
			<dl>
				<dt>QQ: </dt>
				<dd>
					<input value="${media.qq }" type="text" name="qq" maxlength="10"/>
				</dd>
			</dl>
			<dl>
				<dt>微博: </dt>
				<dd>
					<input value="${media.weibo }" type="text" name="weibo" maxlength="100"/>
				</dd>
			</dl>
			<dl>
				<dt>地址: </dt>
				<dd>
					<input value="${media.address }" type="text" name="address" class="required"/>
				</dd>
			</dl>
			<dl>
				<dt>爱好: </dt>
				<dd>
					<input value="${media.hobby }" type="text" name="hobby" maxlength="100"/>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>照片: </dt>
				<dd>
					<input value="${media.photoPath }" name="photoPath" type="text" bringBackName="photo.photoPath" readonly="readonly" class="required readonly">
					<a class="btnAttach" href='<c:url value="/media/uploadphoto"/>' lookupGroup="photo" width="570" height="300" title="照片">照片</a>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>商业合作: </dt>
				<dd>
					<textarea name="cooperation" cols="80" rows="2">${media.cooperation }</textarea>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt>发稿记录: </dt>
				<dd>
					<textarea name="postRecord" cols="80" rows="2">${media.postRecord }</textarea>
				</dd>
			</dl>
		</fieldset>
	</div>
	<div class="formBar">
		<ul>
			<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
	<input type="hidden" name="callbackType" value="closeCurrent"> 
	<input type="hidden" name="navTabId" value="tab_media_list"> 
	<input type="hidden" name="rel" value="dialog_media_edit"> 
</form>
</div>
